<span id="${uuid}"></span>

<form data-id="postForm" method="POST" style="background-color: #f2f4f8;height: 570px">
    <input type="hidden" name="id" value="${documentCopy.id}"/>

    <table border="0" cellpadding="0" cellspacing="0" class="hydra-table">
        <tr class="hydra-tr-bg">
            <td class="hydra-left">
                <input type="radio" name="docRangeType" value="0" ${documentCopy.docRangeType eq 0 ? "checked" : ""}>
                <%--${documentCopy.docRangeType eq null || documentCopy.docRangeType eq 0 ? "checked" : ""}--%>
            </td>
            <td class="hydra-right">所有人可见</td>
        </tr>
        <tr class="hydra-tr-bg">
            <td class="hydra-left">
                <input type="radio" name="docRangeType" value="1" ${documentCopy.docRangeType eq 1 ? "checked" : ""}>
            </td>
            <td class="hydra-right">仅自己可见</td>
        </tr>
        <tr class="hydra-tr-bg">
            <td class="hydra-left">
                <input type="radio" name="docRangeType" value="2" ${documentCopy.docRangeType eq 2 ? "checked" : ""}>
            </td>
            <td class="hydra-right">仅所属课题组可见</td>
        </tr>
        <tr class="hydra-tr-bg">
            <td class="hydra-left">
                <input type="radio" name="docRangeType" value="3" ${documentCopy.docRangeType eq 3 ? "checked" : ""}>
            </td>
            <td class="hydra-right">部分用户可见</td>
        </tr>
    </table>

    <div data-id="selectUser" style="padding-left: 45px;${documentCopy.docRangeType eq 3 ?  "": "display:none"}">
        <input type="hidden" name="userIds" data-id="doc_users" value="${documentCopy.visibleUserIds}"/>
    </div>
</form>
<script type="text/javascript">
    seajs.use(["apps/document/main"], function (page) {
        page.range("${pageContext.request.contextPath}", "${uuid}", {
            publish: "${publish}",
            copyId: "${documentCopy.id}"
        });
    });
</script>
